Skip to content

[WPB-28089] Treat team collaborators like team members in contact search (second attempt). - #5488

Open
fisx wants to merge 17 commits into
developfrom
WPB-28089-treat-team-collaborators-like-team-members-in-contact-search-_second-attempt_
Open

[WPB-28089] Treat team collaborators like team members in contact search (second attempt).#5488
fisx wants to merge 17 commits into
developfrom
WPB-28089-treat-team-collaborators-like-team-members-in-contact-search-_second-attempt_

Conversation

@fisx

@fisx fisx commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

https://wearezeta.atlassian.net/browse/WPB-28089

obsoletes #5452

Checklist

  • Revisit design choices around BrigAPIAccess.Local (separate PR)
  • Resolve ES re-indexing issues
  • Add a new entry in an appropriate subdirectory of changelog.d
  • Read and follow the PR guidelines

@fisx
fisx force-pushed the WPB-28089-treat-team-collaborators-like-team-members-in-contact-search-_second-attempt_ branch from fa423be to b228fdb Compare August 27, 2026 13:41
@zebot zebot added the ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist label Aug 27, 2026
fisx added 11 commits August 28, 2026 12:14
Was previously UserSubsystem, but since it TeamCollaboratorsSubsystem
is also used outside of Brig, that is not always available.

Further changes:

- Support BrigAPIAccess locally in Brig.
- Change collaborator field type in UserDoc to collapse `Nothing` and
  `Just []` (remove the Maybe).
(I don't understand what it is about, and there is no author to ask.)
(This end-point only updates searchability settings, nothing else.)
This is only where we don't expect to use it.  if we're wrong about
this, a warning will be logged.
@fisx
fisx force-pushed the WPB-28089-treat-team-collaborators-like-team-members-in-contact-search-_second-attempt_ branch from 33bbc46 to 0bfdbe6 Compare August 28, 2026 10:35
@fisx
fisx marked this pull request as ready for review August 28, 2026 11:04
@fisx
fisx requested review from a team as code owners August 28, 2026 11:04
Comment thread libs/wire-subsystems/src/Wire/BrigAPIAccess/Local.hs Outdated

-- | The 'Endpoint' is brig's own; it is only used for the operations that have
-- no local implementation yet.
interpretBrigAPIAccessLocally ::

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You still need to convince Akshay

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread libs/wire-subsystems/test/unit/Wire/MockInterpreters/BrigAPIAccess.hs Outdated
Comment thread libs/wire-subsystems/test/unit/Wire/UserSearch/TypesSpec.hs Outdated
fisx and others added 2 commits August 28, 2026 14:19
Co-authored-by: Gautier DI FOLCO <gautier.difolco@wire.com>
…cess.hs

Co-authored-by: Gautier DI FOLCO <gautier.difolco@wire.com>
@blackheaven

Copy link
Copy Markdown
Contributor

Seen with @fisx we cannot simply use UserSubsystems since it is used in both galley & brig, it would take yet-another-subsystem/effect.

fisx added 4 commits August 28, 2026 16:00
…m-collaborators-like-team-members-in-contact-search-_second-attempt_' into WPB-28089-treat-team-collaborators-like-team-members-in-contact-search-_second-attempt_
This has been added in baf4fbc; after it had been touched several
times since its birth: the old bytestring didn't fit what ES did any
more.

I can't think of a way in which this comment may be helpful, so I've
removed it.
... in a long list of "not implemented" errors.  Without this
interpreter or something analogous, some tests in
Wire.TeamCollaboratorsSubsystem.InterpreterSpec will fail.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants